package com.agileai.pm.module.test.service;

import java.util.List;

import com.agileai.domain.DataParam;
import com.agileai.domain.DataRow;
import com.agileai.hotweb.bizmoduler.core.StandardServiceImpl;
import com.agileai.pm.cxmodule.ProjectDefectStatisticsManage;

public class ProjectDefectStatisticsManageImpl
        extends StandardServiceImpl
        implements ProjectDefectStatisticsManage {
    public ProjectDefectStatisticsManageImpl() {
        super();
    }
    public List<DataRow> findProjectDefectRecords(String testSchemeId,String projectId) {
    	DataParam param = new DataParam("PT_ID",testSchemeId,"PI_ID",projectId);
		String statementId = sqlNameSpace+"."+"findProjectDefectRecords";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}
    
    public List<DataRow> findEliminatRateRecords(String testSchemeId,String projectId) {
    	DataParam param = new DataParam("PT_ID",testSchemeId,"PI_ID",projectId);
		String statementId = sqlNameSpace+"."+"findEliminatRateRecords";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}
    
    public List<DataRow> findFormDataRecords(String testSchemeId,String projectId) {
    	DataParam param = new DataParam("PT_ID",testSchemeId,"PI_ID",projectId);
		String statementId = sqlNameSpace+"."+"findFormDataRecords";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}
    
    public List<DataRow> testSchemeNameRecords(String projectId) {
    	DataParam param = new DataParam("PI_ID",projectId);
		String statementId = sqlNameSpace+"."+"testSchemeNameRecords";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}
    
    public List<DataRow> eliminatRateForm(String projectId,String testSchemeId) {
    	DataParam param = new DataParam("PI_ID",projectId,"PT_ID",testSchemeId);
		String statementId = sqlNameSpace+"."+"eliminatRateForm";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}
    
    public List<DataRow> problemNumForm(String projectId,String testSchemeId) {
    	DataParam param = new DataParam("PI_ID",projectId,"PT_ID",testSchemeId);
		String statementId = sqlNameSpace+"."+"problemNumForm";
		List<DataRow> result = this.daoHelper.queryRecords(statementId, param);
		return result;
	}
}
